package com.lagou.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {

    @GetMapping("/email/{email}/{code}")
    public boolean sendEmail(@PathVariable("email") String email,
                          @PathVariable("code") String code){
        System.out.println("邮件已经发送至：" + email + "   内容:" + code);
        return true;
    }

}
